package br.com.guiav6.sisguia.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "TB_BLOCO")
public class Bloco implements PersistentObject{
	
	@Id
	@OneToOne
	@JoinColumn(name = "ID_CEP")
	private Cep cep;
	
	private String posicao;

	public Cep getCep() {
		return cep;
	}
	
	public void setCep(Cep cep) {
		this.cep = cep;
	}
	
	public String getPosicao() {
		return posicao;
	}

	public void setPosicao(String posicao) {
		this.posicao = posicao;
	}

}